home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8878 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: fore.com!news
  2. From: Jeff Rosenfeld <jeffro@fore.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: argc/argv & switches
  5. Date: Wed, 06 Mar 1996 16:16:04 -0500
  6. Organization: FORE Systems
  7. Message-ID: <313E0094.167EB0E7@fore.com>
  8. References: <4h2j8j$9gn@milo.freenet.vancouver.bc.ca> <danpop.825593142@rscernix>
  9. NNTP-Posting-Host: tango.fore.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.4 sun4c)
  14.  
  15. Dan Pop wrote:
  16. > Note that *++argv[0] is technically incorrect, because there is no
  17. > guarantee that argv[0] can be modified by the program, it can be legally
  18. > stored in a read only memory segment.
  19.  
  20. Not so. The standard mandates that if main is defined with two
  21. parameters (which we'll call argc and argv), then:
  22.  
  23.     The parameters argc and argv and the strings pointed
  24.     to by the argv array shall be modifiable by the program....
  25.  
  26. -------------------------------
  27. Jeff Rosenfeld,
  28. who strives for the prosperity of but speaks not with the mouth of
  29. FORE Systems.
  30.